.class final Lcom/trademob/tracking/TMLocaleData;
.super Ljava/lang/Object;
.source "TMLocaleData.java"


# instance fields
.field public final myCountry:Ljava/lang/String;

.field public final myLanguage:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter "aCountry"
    .parameter "aLanguage"

    .prologue
    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 20
    iput-object p1, p0, Lcom/trademob/tracking/TMLocaleData;->myCountry:Ljava/lang/String;

    .line 21
    iput-object p2, p0, Lcom/trademob/tracking/TMLocaleData;->myLanguage:Ljava/lang/String;

    .line 22
    return-void
.end method


# virtual methods
.method public final equals(Ljava/lang/Object;)Z
    .locals 3
    .parameter "obj"

    .prologue
    .line 28
    instance-of v1, p1, Lcom/trademob/tracking/TMLocaleData;

    if-nez v1, :cond_0

    invoke-super {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    .line 30
    :goto_0
    return v1

    :cond_0
    move-object v0, p1

    .line 29
    check-cast v0, Lcom/trademob/tracking/TMLocaleData;

    .line 30
    .local v0, that:Lcom/trademob/tracking/TMLocaleData;
    iget-object v1, p0, Lcom/trademob/tracking/TMLocaleData;->myCountry:Ljava/lang/String;

    iget-object v2, v0, Lcom/trademob/tracking/TMLocaleData;->myCountry:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/trademob/tracking/TMLocaleData;->myLanguage:Ljava/lang/String;

    iget-object v2, v0, Lcom/trademob/tracking/TMLocaleData;->myLanguage:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    const/4 v1, 0x1

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public hashCode()I
    .locals 2

    .prologue
    .line 37
    iget-object v0, p0, Lcom/trademob/tracking/TMLocaleData;->myCountry:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->hashCode()I

    move-result v0

    iget-object v1, p0, Lcom/trademob/tracking/TMLocaleData;->myLanguage:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->hashCode()I

    move-result v1

    add-int/2addr v0, v1

    return v0
.end method

.method public final toString()Ljava/lang/String;
    .locals 2

    .prologue
    .line 44
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/trademob/tracking/TMLocaleData;->myLanguage:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "-"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/trademob/tracking/TMLocaleData;->myCountry:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
